<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
<head>
    <title>测试使用bean</title>
</head>
<body>
<jsp:useBean id="counter" scope="session" class="pack.Counter" />
<jsp:setProperty name="counter" property="count" value="4" />
Get Value:
<jsp:getProperty name="counter" property="count" /><br/>
<jsp:setProperty name="counter" property="name" value="yiibai.com" />
Get Name:
<jsp:getProperty name="counter" property="name" /><br/>
</body>
</html>